Enabling user impersonation on standard pages

Note: In UltraWave-based websites, enabling user impersonation is no longer required. Instead, you can use On Behalf Of, so that staff can complete transactions on behalf of your customers.

To enable user impersonation on standard pages

Similar to how the Content allows user impersonation checkbox in a content record's definition enables logged-on iMIS users who are currently changing information on behalf of another user to view a rendered web page that they might not normally have permission to view, you can also specify that standard pages used in a WCM website can allow user impersonation.

However, because standard pages are internal .aspx pages shared across all of iMIS, and which you cannot edit, you must enable user impersonation for standard pages by manually adding a control to the master page of a WCM website to enable impersonation for all standard pages on the site.

Near the top of the master page, immediately beneath the following line…

 <%@ Master Language="C#" Inherits="Asi.Web.UI.TemplateGalleryMasterPageBase" %>

…add this line:

<%@ Register TagPrefix="asi" TagName="ImpersonationStatus"

   src="~/AsiCommon/Controls/Shared/Utility/ImpersonationStatus.ascx" %>

In the area of the master page where you want the user impersonation control (the Change link) to appear, insert the following element. The recommended position is immediately following the <span> element that contains the control that renders the breadcrumb area, inside the empty <span> element whose id is "mainTitleRight".)

<asi:ImpersonationStatus id="ImpersonationStatusControl"

   runat="server"></asi:ImpersonationStatus>

If the master page's corresponding WCM website is hosted by more than one IIS application or IIS web site, be sure to make these same changes on all copies of the master page in every location.

Test your changes by logging onto the WCM website as a Full or Casual user and looking for the Change link in the expected location.

Before you begin

■    You must have administrative access to the entire file system on your iMIS application server and on all the external web servers that you use for hosting WCM websites.

■    You must be familiar with ASP.NET development techniques and the design and construction of ASP.NET master pages.

■    The root of all file paths used in the following sections is denoted by ~, and corresponds to the root of the physical path for each IIS application or IIS web site used for hosting WCM websites. For example, in a Complete installation of iMIS where the iMIS15 application is used for hosting WCM websites, the default physical path is C:\Program Files\ASI\iMIS15\Net, so the Net folder is the root (~).